﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="Audiwiki._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">

        .style1
        {
            font-weight: bold;
            font-size: medium;
        }
        .style2
        {
            font-size: medium;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        <br />
    </p>
    <h2>
        &nbsp;Welcome to AUDIWIKI</h2>
    <h2 style="font-weight: bolder; font-size: medium">
        &nbsp;Audi<span class="style1" 
            style="color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">&nbsp;designs, engineers, manufactures and distributes automobiles and motorcycles.<span 
            class="Apple-converted-space">&nbsp;</span></span><b><b class="style2" 
            style="color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">Audi</b></b><span 
            class="style1" 
            style="color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 19.1875px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none;">oversees 
        worldwide operations from its headquarters in Ingolstadt, Bavaria, Germany. 
        Audi branded vehicles are produced in seven production facilities worldwide.</span></h2>
    <p style="font-size: medium">
        &nbsp;&nbsp;AUDI brand has many car Ranges, 
        each range includes many models. Please choose 
        your favorate range:</p>
<p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="AudiDB" AllowSorting="True">
            <Columns>
                <asp:BoundField DataField="Range" HeaderText="Range" SortExpression="Range" />
                <asp:BoundField DataField="Details" HeaderText="Details" 
                    SortExpression="Details" />
                <asp:BoundField DataField="ModelName" HeaderText="ModelName" 
                    SortExpression="ModelName" />
                <asp:BoundField DataField="ModelYear" HeaderText="ModelYear" 
                    SortExpression="ModelYear" />
                <asp:BoundField DataField="Color" HeaderText="Color" 
                    SortExpression="Color" />
                <asp:BoundField DataField="Engine" HeaderText="Engine" 
                    SortExpression="Engine" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Photo">
                    <ControlStyle Height="89px" Width="89px" />
                </asp:ImageField>
                <asp:HyperLinkField DataNavigateUrlFields="Info" 
                    DataNavigateUrlFormatString="{0}" DataTextField="ModelName" HeaderText="Info" />
                <asp:HyperLinkField DataNavigateUrlFields="OwnerLocation" 
                    DataNavigateUrlFormatString="http://maps.google.co.uk/?q={0}" 
                    DataTextField="OwnerLocation" HeaderText="Location" />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="detail.aspx?ID={0}" HeaderText="Detail" 
                    Text="Detail" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="AudiDB" runat="server" 
            ConnectionString="<%$ ConnectionStrings:AudiCon %>" 
            ProviderName="<%$ ConnectionStrings:AudiCon.ProviderName %>" 
            SelectCommand="SELECT * FROM [Ranges]"></asp:SqlDataSource>
</p>
    <p style="font-size: medium">
        OR .. Add your a new Audi&nbsp;
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/AddAudi.aspx">Here</asp:HyperLink>
</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
    </p>
</asp:Content>
